package com.ruoyi.project.system.item.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.item.mapper.ZzCustomerOrderItemMapper;
import com.ruoyi.project.system.item.domain.ZzCustomerOrderItem;
import com.ruoyi.project.system.item.service.IZzCustomerOrderItemService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-10-29
 */
@Service
public class ZzCustomerOrderItemServiceImpl implements IZzCustomerOrderItemService 
{
    @Autowired
    private ZzCustomerOrderItemMapper zzCustomerOrderItemMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param customerOrderItemId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public ZzCustomerOrderItem selectZzCustomerOrderItemById(Integer customerOrderItemId)
    {
        return zzCustomerOrderItemMapper.selectZzCustomerOrderItemById(customerOrderItemId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param zzCustomerOrderItem 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ZzCustomerOrderItem> selectZzCustomerOrderItemList(ZzCustomerOrderItem zzCustomerOrderItem)
    {
        return zzCustomerOrderItemMapper.selectZzCustomerOrderItemList(zzCustomerOrderItem);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param zzCustomerOrderItem 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertZzCustomerOrderItem(ZzCustomerOrderItem zzCustomerOrderItem)
    {
        return zzCustomerOrderItemMapper.insertZzCustomerOrderItem(zzCustomerOrderItem);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param zzCustomerOrderItem 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateZzCustomerOrderItem(ZzCustomerOrderItem zzCustomerOrderItem)
    {
        return zzCustomerOrderItemMapper.updateZzCustomerOrderItem(zzCustomerOrderItem);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZzCustomerOrderItemByIds(String ids)
    {
        return zzCustomerOrderItemMapper.deleteZzCustomerOrderItemByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param customerOrderItemId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteZzCustomerOrderItemById(Integer customerOrderItemId)
    {
        return zzCustomerOrderItemMapper.deleteZzCustomerOrderItemById(customerOrderItemId);
    }
}
